/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.transas.navmath;

/**
 *
 * @author amalikov
 */
public class Pos3D extends Pos2D {
	public Pos3D(double lat, double lon, double alt) {
		super(lat, lon);
		this.alt = alt;
	}

	public Pos3D(Pos2D pos2d, double alt) {
		super(pos2d.lat, pos2d.lon);
		this.alt = alt;
	}
	
	@Override
	public Pos3D getPos(double course, double distance) {
		Pos2D pos = super.getPos(course, distance);
		return new Pos3D(pos.lat, pos.lon, alt);
	}	
	
	public final double alt;
}
